<script>
    // console.log(localStorage);
    // // setItem 设置本地存储
    // // localStorage.setItem(k,v)
    localStorage.setItem("username","zs")
    localStorage.setItem("password","123")
    localStorage.setItem("t","143asdfhj345iu365sdfghjrd")


    // getItem 通过key获取value
    // console.log( localStorage.getItem("t"));

    // removeItem
    // localStorage.removeItem("t")


    // key  获取key值
    console.log(localStorage.key(0));
    console.log(localStorage.key(1));
    console.log(localStorage.key(2));


    // length
    // console.log(localStorage.length);


    // clear 清空本地存储
    // localStorage.clear()





</script>